<?php
/**
 * Created by PhpStorm.
 * User: Mak
 * Date: 2016/3/11
 * Time: 20:57
 */

namespace Home\Controller;

use Think\Controller;

class DetailsController extends Controller
{
    public function index()
    {
        $id = htmlspecialchars(trim(I("get.id")));
        if (!empty($id)) {
            $enroll = M("enrollinfo");
            $res = $enroll->where("id=" . $id)->find();
            $this->assign("res", $res);
            $this->display();
        } else {
            $this->error("非法操作！");
        }
    }
}